//
//  DKBaseNavigationController.m
//  DanKU
//
//  Created by EDY on 2023/11/10.
//

#import "DKBaseNavigationController.h"

@interface DKBaseNavigationController ()

@end

@implementation DKBaseNavigationController


- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.count >= 1) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    return self.topViewController.preferredStatusBarStyle;
}

- (BOOL)prefersStatusBarHidden {
    return self.topViewController.prefersStatusBarHidden;
}

@end
